package com.hwhhhh.mygrad.adapter;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;

import com.hwhhhh.mygrad.R;

public class ShoppingAdapter extends RecyclerView.Adapter<ShoppingAdapter.ShoppingHolder> {


    @NonNull
    @Override
    public ShoppingHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
        View itemView = LayoutInflater.from(parent.getContext()).inflate(R.layout.item_shopping, parent, false);
        return new ShoppingHolder(itemView);
    }

    @Override
    public void onBindViewHolder(@NonNull ShoppingHolder holder, int position) {

    }

    @Override
    public int getItemCount() {
        return 10;
    }

    class ShoppingHolder extends RecyclerView.ViewHolder{

        public ShoppingHolder(@NonNull View itemView) {
            super(itemView);
        }
    }
}
